from odoo import api, fields, models

# 引入odoo内置的板块

class Custom_type(models.Model):
    _name = 'custom.type'
    # 相当于给此模型一个唯一id，之后很多地方需要用到
    _description = 'Custom.type'

    type_name = fields.Char(
        string='类型名称',
        required=True
    )

    type_remark = fields.Char(
        '类型备注',
        required=True
    )
